import request from '@/utils/request'

// 查询回收站列表
export function listDelect(query) {
  return request({
    url: '/system/delect/list',
    method: 'get',
    params: query
  })
}

// 查询回收站详细
export function getDelect(query) {
  return request({
    url: '/system/delect/getcarId',
    method: 'get',
    params:query
  })
}

// 新增回收站
export function addDelect(data) {
  return request({
    url: '/system/delect',
    method: 'post',
    data: data
  })
}

// 修改回收站
export function updateDelect(data) {
  return request({
    url: '/system/delect',
    method: 'put',
    data: data
  })
}

// 删除回收站
export function delDelect(personId) {
  return request({
    url: '/system/delect/' + personId,
    method: 'delete'
  })
}

// 导出回收站
export function exportDelect(query) {
  return request({
    url: '/system/delect/export',
    method: 'get',
    params: query
  })
}
